package com.icinfo.cloud.provider.common.dicenum;

public enum IsApproveEnum {
    IsApproveXY("1","需要"),
    IsApproveBXY("0","不需要");

    private String code;
    private String explain;


    private IsApproveEnum(String code, String explain) {
        this.code = code;
        this.explain = explain;
    }
    public static String getExplainByCode(String code) {
        for (IsApproveEnum isApproveEnum : IsApproveEnum.values()) {
            if (isApproveEnum.getCode().equals(code)) {
                return isApproveEnum.getExplain();
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }
}
